<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?> | <?php bloginfo('description'); ?></title>
<meta name="keywords" content="<?php bloginfo('name'); ?>,阅读体验,原创,心情,生活,声音,文字" />
<meta name="description" content="<?php bloginfo('name'); ?><?php bloginfo('description'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 

<?php wp_head(); ?>
</head>
<body <?php //body_class(); //暂时屏蔽 ?>>

<div id="top_nav">
	<ul>
      <li <?php if(is_home()){?> class="page_item page-item-1 current_page_item" <?php }?>><a href="<?php echo get_option('home'); ?>/">首页</a></li>
      <?php wp_list_pages('title_li=&exclude=272,274,278' ); ?>
      <span>
      <?php if(!is_user_logged_in()) : ?>
      <a href="./wp-admin" title="登录芒色">登录</a>
      <a href="<?php echo get_option('home');?>/wp-login.php?action=register" title="注册成为会员">注册</a>
		<?php
		else:
			$cuser = current_user();
			printf("%s&nbsp;<a href='%s' title='进入管理'>管理</a>&nbsp;&nbsp;<a href='%s' title='确认退出吗'>退出</a>",'<a href="'.get_author_posts_url($cuser->ID).'">主页</a>',get_option('siteurl') . '/wp-admin/profile.php',get_option('home').'/wp-login.php?action=logout');
		?>
	<?php endif;?>
      </span>
    </ul>
</div>

<div id="wrapper">
	<div id="innerWrapper">
<!--顶部开始-->
		<div id="header">
			<div id="innerHeader">
				<div class="blog-header">
					<div id="logo">
					<a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>">
					<img class="logoimg" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.gif" />
					</a>
					</div>
				</div>
				<div id="menu">
					<ul>
						<li class="zhuanti">
						<a href="http://www.mangse.com/about" title="你想听到的声音">
						<img src="<?php bloginfo('stylesheet_directory'); ?>/images/top.png" />
						</a>
						</li>
                		<?php wp_list_categories('title_li=&hide_empty=0&depth=1&exclude=1'); ?>
					</ul>
				</div>
				<div id="menu_right">
				<a href="http://feeds.feedburner.com/mangse"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.png" /></a>
				</div>
			</div>
			<div id="top_category">
				<ul>
				<?php
					$tag_array = wp_tag_cloud('smallest=9&largest=9&number=50&separator=|&format=array&orderby=count&order=DESC');
					foreach ((array)$tag_array as $k=>$v){
						$separator = "|";
						echo "<li>".$v."</li>";
					}
				?>
                </ul>
			</div>
		</div>

		<div id="mainWrapper">
		<img src="<?php bloginfo('stylesheet_directory'); ?>/ad/ms.png" />
		<div class="clear"></div>
        </div>

